﻿@using WaterRevenueMS.Domain.ViewModels.BasicSet.CompanySet;
@using WaterRevenueMS.Domain.ViewModels.AdminCommon

@model SearchModel
@{
    var createButton = new ButtonModel();
    createButton = ViewBag.Create;
}

<div class="widget-box">
    <div class="widget-title">
        <span class="icon"><i class="icon-search"></i></span>
        <h5>查询条件</h5>
    </div>
    <div class="widget-content nopadding">
        <form class="form-horizontal search-form" method="post" name="basic_validate" novalidate="novalidate">

            <div class="control-group">

                <div class="search-group">
                    <label class="search-label">公司标识</label>
                    <div class="span2 search-input">
                        @Html.TextBoxFor(t => t.Gong_SBZ)
                    </div>
                </div>
                <div class="search-group">
                    <label class="search-label">单位名称</label>
                    <div class="span2 search-input">
                        @Html.TextBoxFor(t => t.Dan_WMC)
                    </div>
                </div>
                <div class="search-group">
                    <label class="search-label">单位简称</label>
                    <div class="span2 search-input">
                        @Html.TextBoxFor(t => t.Dan_WJC)
                    </div>
                </div>
                                
                                                                                           
            </div>


            <div class="form-actions form-operate text-right ">
                <button type="button" class="btn btn-danger" onclick="ClearForm($('.search-form'));">
                    <span class="icon-bullhorn"></span> 清空
                </button>
                <button type="button" class="btn btn-success" onclick="Search()">
                    <span class="icon-search"></span> 搜索
                </button>
                @if (createButton != null)
                {
                    <button type="button" class="btn btn-primary" onclick="Create()">
                        <span class="@createButton.Icon"></span> @createButton.Text
                    </button>
                }
            </div>

        </form>

    </div>
</div>